#!/bin/bash

function is_running() {
  echo "Please input words"
  read word
  $(ps aux| grep -q ${word})
  if [ ${?} -eq 0 ]; then
      echo "${word} is running"
  else
      echo "${word} is not running"
  fi
}

is_running